FROM alpine

# set env
ENV HOME /root
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV GOROOT /usr/lib/go
ENV GOBIN $GOROOT/bin
ENV GOPATH /root/go
ENV PATH $PATH:$GOBIN:$GOPATH/bin

# install pagkages
RUN apk update
RUN apk upgrade
RUN apk add vim
RUN apk add ncurses-dev
RUN apk add tolua++
#RUN apk add exuberant-ctags
#RUN apk add pandoc
RUN apk add lynx
RUN apk add lua
RUN apk add go
RUN apk add libc6-compat
RUN apk add git
RUN apk add curl
RUN apk add nodejs

RUN mkdir -p /root/
RUN touch /root/.vimrc

RUN curl -fLo /root/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

COPY vimrc /root/.vimrc
COPY pluginstall /root/pluginstall

RUN vim -s /root/pluginstall
